#!/bin/bash
# 导出所有conda环境的pip requirements

# 获取所有环境
envs=$(conda env list | grep -v "^#" | grep -v "^$" | awk '{print $1}')

echo "正在导出所有环境的pip requirements..."

# 为每个环境导出pip requirements
for env in $envs; do
    echo "正在处理环境: $env"
    python export_pip_requirements.py --env-name $env --output conda_environments/${env}_pip_requirements.txt
done

echo "所有环境的pip requirements已导出完成" 